<?php
    include("connect.php");
    $title = $_POST['title'];
    $description = $_POST['desciption'];
    $image = $_POST['image'];
    $content = $_POST['content'];
    $author = $_POST['author'];
    $date = date("Y-m-d");
    $statement = $_POST['statement'];
    $sql_command = "insert into news(title, description, image, content, author, date, statement) values('{$title}','{$description}','{$image}','{$content}','{$author}', '{$date}', '{$statement}')";
    mysql_query("$sql_command") or die("Error!");
    mysql_close();
    header("Location: articleManager.php");
?>